/*   1:    */ package org.jetbrains.debugger;
/*   2:    */ 
/*   3:    */

import com.intellij.xdebugger.evaluation.XDebuggerEvaluator;
import com.intellij.xdebugger.frame.XNavigatable;
import com.intellij.xdebugger.frame.XValueNode;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.debugger.frame.CallFrameView;
import org.jetbrains.debugger.values.ObjectValue;
import org.jetbrains.debugger.values.Value;

import javax.swing.*;
import java.util.List;

/*   4:    */
/*   5:    */
/*   6:    */
/*   7:    */
/*   8:    */
/*   9:    */
/*  10:    */
/*  11:    */
/*  12:    */
/*  13:    */ 
/*  14:    */ public abstract interface DebuggerViewSupport
/*  15:    */   extends MemberFilter
/*  16:    */ {
/*  17:    */   @Nullable
/*  18:    */   public abstract SourceInfo getSourceInfo(@Nullable Script paramScript, @NotNull CallFrame paramCallFrame);
/*  19:    */   
/*  20:    */   @Nullable
/*  21:    */   public abstract SourceInfo getSourceInfo(@Nullable String paramString1, @NotNull String paramString2, int paramInt1, int paramInt2);
/*  22:    */   
/*  23:    */   @Nullable
/*  24:    */   public abstract SourceInfo getSourceInfo(@Nullable String paramString, @NotNull Script paramScript, int paramInt1, int paramInt2);
/*  25:    */   
/*  26:    */   public abstract Vm getVm();
/*  27:    */   
/*  28:    */   @NotNull
/*  29:    */   public abstract String propertyNamesToString(@NotNull List<String> paramList, boolean paramBoolean);
/*  30:    */   
/*  31:    */   public abstract void computeObjectPresentation(@NotNull ObjectValue paramObjectValue, @NotNull Variable paramVariable, @NotNull VariableContext paramVariableContext, @NotNull XValueNode paramXValueNode, @NotNull Icon paramIcon);
/*  32:    */   
/*  33:    */   public abstract void computeArrayPresentation(@NotNull Value paramValue, @NotNull Variable paramVariable, @NotNull VariableContext paramVariableContext, @NotNull XValueNode paramXValueNode, @NotNull Icon paramIcon);
/*  34:    */   
/*  35:    */   @NotNull
/*  36:    */   public abstract XDebuggerEvaluator createFrameEvaluator(@NotNull CallFrameView paramCallFrameView);
/*  37:    */   
/*  38:    */   public abstract boolean canNavigateToSource(@NotNull Variable paramVariable, @NotNull VariableContext paramVariableContext);
/*  39:    */   
/*  40:    */   public abstract void computeSourcePosition(@NotNull Variable paramVariable, @NotNull VariableContext paramVariableContext, @NotNull XNavigatable paramXNavigatable);
/*  41:    */   
/*  42:    */   public static class SimpleDebuggerViewSupport
/*  43:    */     implements DebuggerViewSupport
/*  44:    */   {
/*  45: 47 */     public static final DebuggerViewSupport INSTANCE = new SimpleDebuggerViewSupport();
/*  46:    */     
/*  47:    */     @Nullable
/*  48:    */     public SourceInfo getSourceInfo(@Nullable Script paramScript, @NotNull CallFrame paramCallFrame)
/*  49:    */     {
/*  50: 52 */       if (paramCallFrame == null) {
/*  51: 52 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "getSourceInfo" }));
/*  52:    */       }
/*  53: 52 */       return null;
/*  54:    */     }
/*  55:    */     
/*  56:    */     @Nullable
/*  57:    */     public SourceInfo getSourceInfo(@Nullable String paramString1, @NotNull String paramString2, int paramInt1, int paramInt2)
/*  58:    */     {
/*  59: 58 */       if (paramString2 == null) {
/*  60: 58 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "getSourceInfo" }));
/*  61:    */       }
/*  62: 58 */       return null;
/*  63:    */     }
/*  64:    */     
/*  65:    */     @Nullable
/*  66:    */     public SourceInfo getSourceInfo(@Nullable String paramString, @NotNull Script paramScript, int paramInt1, int paramInt2)
/*  67:    */     {
/*  68: 64 */       if (paramScript == null) {
/*  69: 64 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "getSourceInfo" }));
/*  70:    */       }
/*  71: 64 */       return null;
/*  72:    */     }
/*  73:    */     
/*  74:    */     public Vm getVm()
/*  75:    */     {
/*  76: 69 */       return null;
/*  77:    */     }
/*  78:    */     
/*  79:    */     @NotNull
/*  80:    */     public String propertyNamesToString(@NotNull List<String> paramList, boolean paramBoolean)
/*  81:    */     {
/*  82: 75 */       if (paramList == null) {
/*  83: 75 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "propertyNamesToString" }));
/*  84:    */       }
/*  85: 75 */       String tmp45_42 = ValueModifierUtil.propertyNamesToString(paramList, paramBoolean);
/*  86: 75 */       if (tmp45_42 == null) {
/*  87: 75 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "propertyNamesToString" }));
/*  88:    */       }
/*  89: 75 */       return tmp45_42;
/*  90:    */     }
/*  91:    */     
/*  92:    */     public void computeObjectPresentation(@NotNull ObjectValue paramObjectValue, @NotNull Variable paramVariable, @NotNull VariableContext paramVariableContext, @NotNull XValueNode paramXValueNode, @NotNull Icon paramIcon)
/*  93:    */     {
/*  94: 80 */       if (paramObjectValue == null) {
/*  95: 80 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeObjectPresentation" }));
/*  96:    */       }
/*  97: 80 */       if (paramVariable == null) {
/*  98: 80 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeObjectPresentation" }));
/*  99:    */       }
/* 100: 80 */       if (paramVariableContext == null) {
/* 101: 80 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "2", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeObjectPresentation" }));
/* 102:    */       }
/* 103: 80 */       if (paramXValueNode == null) {
/* 104: 80 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "3", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeObjectPresentation" }));
/* 105:    */       }
/* 106: 80 */       if (paramIcon == null) {
/* 107: 80 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "4", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeObjectPresentation" }));
/* 108:    */       }
/* 109: 80 */       VariableView.setObjectPresentation(paramObjectValue, paramIcon, paramXValueNode);
/* 110:    */     }
/* 111:    */     
/* 112:    */     public void computeArrayPresentation(@NotNull Value paramValue, @NotNull Variable paramVariable, @NotNull VariableContext paramVariableContext, @NotNull XValueNode paramXValueNode, @NotNull Icon paramIcon)
/* 113:    */     {
/* 114: 85 */       if (paramValue == null) {
/* 115: 85 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeArrayPresentation" }));
/* 116:    */       }
/* 117: 85 */       if (paramVariable == null) {
/* 118: 85 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeArrayPresentation" }));
/* 119:    */       }
/* 120: 85 */       if (paramVariableContext == null) {
/* 121: 85 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "2", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeArrayPresentation" }));
/* 122:    */       }
/* 123: 85 */       if (paramXValueNode == null) {
/* 124: 85 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "3", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeArrayPresentation" }));
/* 125:    */       }
/* 126: 85 */       if (paramIcon == null) {
/* 127: 85 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "4", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeArrayPresentation" }));
/* 128:    */       }
/* 129: 85 */       VariableView.setArrayPresentation(paramValue, paramVariableContext, paramIcon, paramXValueNode);
/* 130:    */     }
/* 131:    */     
/* 132:    */     @NotNull
/* 133:    */     public XDebuggerEvaluator createFrameEvaluator(@NotNull CallFrameView paramCallFrameView)
/* 134:    */     {
/* 135: 91 */       if (paramCallFrameView == null) {
/* 136: 91 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "createFrameEvaluator" }));
/* 137:    */       }
/* 138: 91 */       throw new UnsupportedOperationException();
/* 139:    */     }
/* 140:    */     
/* 141:    */     public boolean canNavigateToSource(@NotNull Variable paramVariable, @NotNull VariableContext paramVariableContext)
/* 142:    */     {
/* 143: 96 */       if (paramVariable == null) {
/* 144: 96 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "canNavigateToSource" }));
/* 145:    */       }
/* 146: 96 */       if (paramVariableContext == null) {
/* 147: 96 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "canNavigateToSource" }));
/* 148:    */       }
/* 149: 96 */       return false;
/* 150:    */     }
/* 151:    */     
/* 152:    */     public void computeSourcePosition(@NotNull Variable paramVariable, @NotNull VariableContext paramVariableContext, @NotNull XNavigatable paramXNavigatable)
/* 153:    */     {
/* 154:101 */       if (paramVariable == null) {
/* 155:101 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeSourcePosition" }));
/* 156:    */       }
/* 157:101 */       if (paramVariableContext == null) {
/* 158:101 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeSourcePosition" }));
/* 159:    */       }
/* 160:101 */       if (paramXNavigatable == null) {
/* 161:101 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "2", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "computeSourcePosition" }));
/* 162:    */       }
/* 163:    */     }
/* 164:    */     
/* 165:    */     public boolean isMemberVisible(@NotNull Variable paramVariable, boolean paramBoolean)
/* 166:    */     {
/* 167:105 */       if (paramVariable == null) {
/* 168:105 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "isMemberVisible" }));
/* 169:    */       }
/* 170:105 */       return true;
/* 171:    */     }
/* 172:    */     
/* 173:    */     @NotNull
/* 174:    */     public String normalizeMemberName(@NotNull Variable paramVariable)
/* 175:    */     {
/* 176:111 */       if (paramVariable == null) {
/* 177:111 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "normalizeMemberName" }));
/* 178:    */       }
/* 179:111 */       String tmp46_41 = paramVariable.getName();
/* 180:111 */       if (tmp46_41 == null) {
/* 181:111 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/debugger/DebuggerViewSupport$SimpleDebuggerViewSupport", "normalizeMemberName" }));
/* 182:    */       }
/* 183:111 */       return tmp46_41;
/* 184:    */     }
/* 185:    */   }
/* 186:    */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.debugger.DebuggerViewSupport

 * JD-Core Version:    0.7.0.1

 */